home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8534 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  42 lines

  1. Newsgroups: comp.lang.c++
  2. Path: in1.uu.net!demos!pluscom!usenet
  3. From: sergeyp@albea.ugatu.ac.ru (Sergey Pavlov)
  4. Subject: Re: basic syntax
  5. X-Newsreader: Forte Free Agent 1.0.82
  6. Sender: usenet@news.rinet.ru (Superuser)
  7. Nntp-Posting-Host: albea.ugatu.ac.ru
  8. Organization: Albea
  9. Message-ID: <DMt4v2.DoM@news.rinet.ru>
  10. References: <4ft5t8$ltl@robin.cqi.com>
  11. Date: Thu, 15 Feb 1996 08:01:18 GMT
  12.  
  13. pan@cqi.com (John L Tucker) wrote:
  14.  
  15. >I really have looked hard for the answer to this, and can't find it in my 
  16. >books anywhere.
  17. >I know this must be basic syntax.  I just can't find code to steal.
  18.  
  19. >My compiler is giving me an error message of:
  20. >"cSrtList needs template instantiation arguments"
  21.  
  22. >on:
  23.  
  24. >class mylist : public cSrtList
  25. >      {
  26. >      etc.
  27.  
  28. >cSrtList has three constructors, each with a differnt argument, the only one 
  29. >I would
  30. >want to use would be "long MaxItems".  (cSrtList is part of a library I have
  31. >rights to use).  I would want to make MaxItems constant.
  32.  
  33. >Thanks for a patient answer.
  34.  
  35. cStrList is TEMPLATE class, so you need write something like this:
  36.  
  37. class mylist: public cStrList<int>
  38.  
  39.  
  40.  
  41.